/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [MyTask.java]
 * Creation Date        [04-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_08_thread.thread_pool;

/**
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public class MyTask implements Task {

	private int taskID = 0;

	public MyTask(int id) {
		taskID = id;
	}

	@Override
	public void perform() throws Exception {
		System.out.println("My Task ID " + taskID + ": start");
		Thread.sleep(1000);
		System.out.println("My Task ID " + taskID + ": end");
	}

}
